#include "proc.h"
#include <unistd.h>
#define SIZE 101
#define STYLE '='
#define ARR '>'

void bar()
{
char ch[]={'/','-','\\','|'};
  int i=0;
  char proc[SIZE]={0};
while(i<=100)
{
  printf("[%-100s][%d%%][%c]\r",proc,i,ch[i%4]);
  fflush(stdout);
  proc[i++]=STYLE;
  proc[i]=ARR;
  usleep(100000);
}
printf("\n");
}
